package com.wealth.coupon.enums;
/**
 * 优惠券批次状态
 * @author chan
 */
public enum CouponStatusEnum {
	
	AUDIT(1,"未审核"),NOTPASS(2,"审核未通过"),PASS(3,"审核通过"),COMPLETED(4,"制作完成");
	
	private int value;
	private String comment;
	private CouponStatusEnum(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static CouponStatusEnum get(int value){
		for (CouponStatusEnum o:CouponStatusEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
}
